import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index'
import Search from '../views/Search'
import dingdan from "../views/dingdan"
import Carts from '../views/Carts'
import Friends from '../views/Friends'
import AddressList from '../views/addressList'
import AddressEdit from '../views/addressEdit'
import addBanner from '../views/addBanner'
import login from '../views/login'
import Ji from "../views/ji.vue"
import Good from "../views/good.vue"
import Ranking from "../views/ranking.vue"
import Xingq from "../views/xingq.vue"
import Miao from "../views/miao.vue"
import Pro from "../views/proList.vue"
import Com from "../views/comList.vue"
import SwiAcc from "../views/swiAcc.vue"
import Ditu from "../views/ditu.vue"
import fukuan from "../views/fukuan.vue"
import Alter from "../views/alter.vue"
import Close from "../views/close.vue"
import killOrder from "../views/killOrder.vue"


import Pay from "../views/pay.vue"

Vue.use(VueRouter)

const routes = [
 {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/index',
    name: 'index',
    component: Index
  },
  {//登录
    path: '/login',
    component: login
  },
  {//消息
    path: '/search',
    component: Search
  },
  {//商城
    path: '/carts',
    component: Carts
  },
  {//我的
    path: '/friends',
    component: Friends
  },
  {//查看收货地址
    path: '/addressList',
    component:AddressList
  },
  {//新增地址
    path: '/addressEdit',
    component:AddressEdit
  },
  {//个人信息
    path: '/addBanner',
    component: addBanner
  },

  {//商城
    path: '/good',
    component: Good
  },
{
    path: '/ji',
    component:Ji,
  },
{//跳转排行榜
    path: '/ranking',
    component:Ranking,
  },
{//跳转详情
    path: '/xingq',
    component:Xingq,
  },
  {//跳转详情
    path: '/miao',
    component:Miao,
  },
  {//商品列表
    path: '/proList',
    component:Pro,
  },
  {//套餐列表
    path: '/comList',
    component:Com,
  },
  {//切换
    path: '/swiAcc',
    component:SwiAcc,
  },
  {//跳转付款
    path: '/fukuan',
    component:fukuan,
  },
  {//订单列表
    path: '/dingdan',
    component:dingdan,
  },
  {//订单列表
    path: '/ditu',
    component:Ditu,
  },
  {//订单列表
    path: '/alter',
    component:Alter,
  },
  {//结算跳转
    path: '/close',
    component:Close,
  },
  {//结算跳转
    path: '/killOrder',
    component:killOrder,
  },

   { path: '/pay',
    component:Pay,
  },
  
 


]

const router = new VueRouter({
  routes
})

export default router

